﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ext.Net;
using System.Reflection;

namespace Sio.Mdm.Web.Controls
{
    [Meta]
    public class FormPanel : Ext.Net.FormPanel
    {
        public FormPanel()
        {
            
        }

        public override string XType
        {
            get
            {
                return "mdmformpanel";
            }
        }

        private bool markInvalidOnLoad = true;
        [Meta]
        public bool MarkInvalidOnLoad
        {
            get
            {
                return markInvalidOnLoad;
            }
            set
            {
                markInvalidOnLoad = value;
            }
        }

        public override ConfigOptionsCollection ConfigOptions
        {
            get
            {
                ConfigOptionsCollection list = base.ConfigOptions;
                list.Add("markInvalidOnLoad", new ConfigOption("markInvalidOnLoad", new SerializationOptions("markInvalidOnLoad"), null, this.MarkInvalidOnLoad)); 
                return list;
            }
        }
    }
}
